package com.deyang.workflow.service;

import com.deyang.workflow.entity.WorkOrderDetails;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 工单详情记录表 服务类
 * </p>
 *
 * @author zhanghuaiyu
 * @since 2021-07-01
 */
public interface IWorkOrderDetailsService extends IService<WorkOrderDetails> {

    //获取具体工单编号对应的流转记录
    List<WorkOrderDetails> transferRecord(String workOrderId);

    //查询已处理、待处理、已提交事件
    List<WorkOrderDetails> queryEventList(String sign,String user);

    //根据工单id和用户姓名以及查询状态查询对应的工单步骤信息
    WorkOrderDetails queryWorkOrder(Map<String,String> map);

    //根据工单号和模板号处理手动派单的逻辑
    void sendOrder(String workOrderId, String templateCode);

    //根据工单id查询工单步骤信息
    WorkOrderDetails queryWorkOrder(String workOrderId);



}
